package com.example.easyscript.bean.task;

import com.example.easyscript.bean.BaseBean;
import com.example.easyscript.enums.StepTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class StepBean extends BaseBean {

    @ApiModelProperty("步骤类型")
    private StepTypeEnum stepType;

    @ApiModelProperty("目标地址")
    private String pictureUrl;

    @ApiModelProperty("步骤名")
    private String stepName;

    @ApiModelProperty("步骤目标id")
    private Integer imageId;

    @ApiModelProperty("图名")
    private String imageName;

    @ApiModelProperty("操作id")
    private Integer operationId;

    @ApiModelProperty("执行完步骤后预期转移到的状态id")
    private Integer statusId;

    @ApiModelProperty("等待时间")
    private Long waitTime;

    public StepBean(EntranceBean entranceBean){
        stepType = StepTypeEnum.CLICK_TYPE;
        pictureUrl = entranceBean.getPictureUrl();
        stepName = "系统步骤";
        imageId = entranceBean.getImageId();
        imageName = entranceBean.getImageName();
        operationId = -1 ;
    }

    public StepBean(){}

}

